# ---------- ---------- ---------- ---------- ---------- ----------
#
# Makefile
#
# ---------- ---------- ---------- ---------- ---------- ----------


target: build


.PHONY: help
help:
	@echo "Usage: make [PHONY]"
	@sed -n -e '/sed/! s/\.PHONY: //p' Makefile


.PHONY: build
build:
	@gcc main.c


.PHONY: test
test: build
	@./a.out 5000.90 || echo ""
	@./a.out 5000.90 a || echo ""
	@./a.out 5000.90 9 || echo ""
	@./a.out || echo ""
	@./a.out a || echo "edge case should pass and result in 0"
	@./a.out a 9 || echo ""
	@./a.out 9 a || echo ""


.PHONY: clean
clean:
	@rm a.out
